package com.agent.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("workflow_instance")
public class WorkflowInstance {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String instanceId;
    private String workflowId;
    private String workflowName;
    private String status;
    private String inputData;
    private String outputData;
    private String currentNodeId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private String errorMessage;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
